﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Emails.aspx.cs" Inherits="Emails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="header" Runat="Server">
  Email addresses
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
  <p>
    Choose which filtered list of people you want:<br />
    <asp:DropDownList ID="ddlFilter" runat="server" DataSourceID="sdsFilter" 
      DataTextField="filter" DataValueField="where_clause">
    </asp:DropDownList>
    <asp:SqlDataSource ID="sdsFilter" runat="server" 
      ConnectionString="<%$ ConnectionStrings:Main %>" 
      SelectCommand="SELECT [filter], [where_clause] FROM [filters] ORDER BY [filter]"></asp:SqlDataSource>
  </p>
  
  <p>
    <asp:Button ID="bnFind" runat="server" Text="Get Emails" 
      onclick="bnFind_Click" />
  </p>
</asp:Content>

